




//
//  NTransferCell.m
//  nncloud
//
//  Created by macfai on 2018/11/30.
//  Copyright © 2018 macfai. All rights reserved.
//

#import "NTransferCell.h"

@implementation NTransferCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.selectionStyle = 0;
    self.line = [[UIView alloc]initWithFrame:CGRectMake(27, 25, 1, 80)];
    self.line.backgroundColor = ThemeBlue;
    [self addSubview:self.line];
    // Initialization code
}

- (void)setModel:(NTransferModel *)model{
    _model = model;
//    NSString *stat = model.businessStatus;
    switch ([model.businessStatus integerValue]) {
        case 1:
        {
            self.name.text = [NSString stringWithFormat:@"状态:%@",@"提交项目申报"];
        }
            break;
        case 2:
        {
            self.name.text = [NSString stringWithFormat:@"状态:%@",@"项目审批"];
        }
            break;
        case 3:
        {
            self.name.text = [NSString stringWithFormat:@"状态:%@",@"上报立项材料"];
        }
            break;
        case 4:
        {
            self.name.text = [NSString stringWithFormat:@"状态:%@",@"审批立项材料"];
        }
            break;
            
        default:
            break;
    }
    
    self.person.text = model.businessPeople;
    self.status.text = model.businessOpinion;
    self.HaoshiLabel.text = model.businessDuration;
    self.time.text = [ToolKit getTimeFromTimesTamp:model.businessEndTime];
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
